package com.team2.insulatingtools.modular.tools.pojo.response;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * .           ,%%%%%%%%,
 * .         ,%%/\%%%%/\%%
 * .        ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 * `%%      `%%%%(__Y__)%%'
 * //        ;%%%%`\-/%%%'
 * ((        /  `%%%%%%%'
 * \\    .'          |
 * \\  /       \  | |
 * \\/         ) | |
 * \         /_ | |__
 * (___________)))))))
 * 攻城狮 永无bug!
 *
 * @ClassName RecordStatisticsResponse
 * @Author lemon
 * @create 2023/4/3 19:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ColumnWidth(20)
public class RecordStatisticsImportResultsExcel {
    @ExcelProperty("车间")
    private String workShopName;

    @ExcelProperty("班组")
    private String teamName;

    @ExcelProperty("编号")
    private String number;

    @ExcelProperty("父工具编号")
    private String parentToolNumber;

    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("状态")
    private Integer status;

    @ExcelProperty("保管人")
    private String keeper;


    @ExcelProperty("规格/型号")
    private String specification;

    @ExcelProperty("试验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date testDate;

    @ExcelProperty("有效截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date expireDate;

    @ExcelProperty("试验人")
    private String tester;

    @ExcelProperty("审核人")
    private String auditor;

    @ExcelProperty("投运日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date operateDate;

    @ExcelProperty("试验结论")
    private String operateConclusion;

    @ExcelProperty("工作电压")
    private Float workingVoltage;

    @ExcelProperty("试验电压")
    private Float testVoltage;

    @ExcelProperty("试验长度")
    private Double length;

    @ExcelProperty("试验持续时间")
    private Double lastingTime;

    @ExcelProperty("试验周期")
    private Double cycle;

    @ExcelProperty("导入结果")
    private String importResults;

}
